home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime vr / vrbackbuffer / application files / comapplication.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.6 KB  |  78 lines

  1. //////////
  2. //
  3. //    File:        ComApplication.h
  4. //
  5. //    Contains:    Application-specific code for QuickTime movies demo.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Based (heavily!) on the MovieShell code written by Apple DTS
  9. //
  10. //    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <4>         09/11/97    rtm        merged MacApplication.h and WinApplication.h
  15. //       <3>         08/21/97    rtm        begun adding Windows support
  16. //       <2>         11/27/96    rtm        conversion to personal coding style
  17. //       <1>         12/21/94    khs        first file
  18. //       
  19. //////////
  20.  
  21. #pragma once
  22.  
  23. //////////
  24. //
  25. // header files
  26. //
  27. //////////
  28.  
  29. #ifndef __QUICKTIMEVR__
  30. #include <QuickTimeVR.h>
  31. #endif
  32.  
  33. #ifndef __QTUtilities__
  34. #include "QTUtilities.h"
  35. #endif
  36.  
  37. #ifndef __QTVRUtilities__
  38. #include "QTVRUtilities.h"
  39. #endif
  40.  
  41. #include <TextUtils.h>
  42. #include <string.h>
  43.  
  44. #if TARGET_OS_MAC
  45. #include "MacFramework.h"
  46. #include "AppConfiguration.h"
  47. #endif    // TARGET_OS_MAC
  48.  
  49. #if TARGET_OS_WIN32
  50. #include "WinFramework.h"
  51. #endif    // TARGET_OS_WIN32
  52.  
  53. #include "ComResource.h"
  54.  
  55.  
  56. //////////
  57. //
  58. // constants
  59. //
  60. //////////
  61.  
  62.  
  63. //////////
  64. //
  65. // structures
  66. //
  67. //////////
  68.  
  69. // application-specific data
  70. typedef struct {
  71.     PicHandle                    fPicture;            // the embedded picture
  72.     float                        fPictureWidth;        // the width (in radians) of the embedded picture
  73.     QTVRBackBufferImagingUPP    fBackBufferProc;    // a routine descriptor for our back buffer routine
  74.     UInt16                        fCurrMenuItem;        // menu identifier of current embedding selection
  75. } ApplicationDataRecord, *ApplicationDataPtr, **ApplicationDataHdl;
  76.  
  77.  
  78. // the function prototypes are in the file MacFramework.h or WinFramework.h